body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column; /* Alinea los elementos verticalmente */
}

.container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.calculator {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    margin-right: 20px;
    display: flex;
    flex-direction: column; /* Cambia el flujo a columna para centrar elementos verticalmente */
    align-items: center; /* Centra los elementos horizontalmente */
}

.mas-juegos {
    cursor: pointer;
    background: linear-gradient(orange, darkorange);
    padding: 10px;
    border-radius: 5px;
    border: white 5px solid;
    font-size: 130%;
    color: #fff;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.mas-juegos:hover {
    background: linear-gradient(darkorange, orange);
}

h1 {
    color: #333;
    text-align: center;
    font-size: 1.2rem; /* Reduzco el tamaño de fuente del título */
    margin: 0; /* Elimino el margen superior e inferior del título */
}

table {
    width: 100%;
}

table, th, td {
    border-collapse: collapse;
}

th, td {
    padding: 5px;
    border: 1px solid #ccc;
    text-align: center;
}

th {
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
}

td {
    background-color: #f9f9f9;
}

td:first-child {
    text-align: left;
}

td:not(:first-child) {
    text-align: center;
}

td:not(:first-child) input, td:not(:first-child) select {
    width: 90px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

p {
    color: #333;
    text-align: center;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .calculator {
        width: 95%;
    }
}